package com.osdp.uc.api.impl;

import com.osdp.uc.api.IPositionApi;
import com.osdp.uc.dto.PositionDTO;
import com.osdp.uc.feign.UcFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionApiFeignImpl implements IPositionApi {

    @Autowired
    private UcFeignService ucFeignService;

    @Override
    public List<PositionDTO> queryPositionByUserId(String userId) {
        return ucFeignService.queryPositionByUserId(userId);
    }
}
